package com.qijian.flowable.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.flowable.domain.MatrixField;
import com.qijian.flowable.domain.vo.MatrixFieldVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 流程矩阵字段Mapper接口
 *
 * @author qijian
 * @date 2022-02-08
 */
public interface MatrixFieldMapper extends BaseMapper<MatrixField> {

    @Select("select count(0) from t_flowable_matrix_field WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    void deleteByMatrixIdId(long matrixId);

    List<MatrixFieldVo> getRemindUser(Long deptId);
}
